export default {
  data () {
    return {
      api: {
        'save': '/register',
        'delete': '/delete',
        'update': '/update',
        'query': '/queryPage'
      },

      fields: [
        {
          field: 'userId',
          name: '用户ID'
        },
        {
          field: 'userName',
          name: '用户名称'
        },
        {
          field: 'password',
          name: '密码',
          type: 'password'
        },
        {
          field: 'createDate',
          type: 'date',
          name: '创建时间'
        },
        {
          field: 'lastDate',
          type: 'date',
          name: '更新时间'
        },
        {
          field: 'enable',
          type: 'select',
          name: '是否启用',
          codeType: 'yesOrNo'
        },
        {
          field: 'action',
          name: '操作',
          slot: 'action'
        }
      ]
    }
  }
}
